package edu.cueb.wmis.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuzizhuo
 * @since 2021-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_incomebill")
@ApiModel(value="Incomebill对象", description="")
public class Incomebill implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "入库单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "入库单编号 如2020年第1号")
    private String billName;

    @ApiModelProperty(value = "入库时间")
    private LocalDate inputTime;

    @ApiModelProperty(value = "录入人id")
    private Integer inputUserId;

    @ApiModelProperty(value = "录入人")
    @TableField(exist = false)
    private Admin admin;

    @ApiModelProperty(value = "详单列表")
    @TableField(exist = false)
    private List<Incomebillitem> items;

}
